//
//  CollectModel.swift
//  LeTu
//
//  Created by gy on 2023/12/25.
//

import Foundation

class CollectModel: Mappable {
    
    /// 数据id
    var id = 1
    /// 中文名称
    var name = ""
    /// 中文简介
    var brief = ""
    /// 英文名称
    var englishName = ""
    /// 英文简介
    var englishBrief = ""
    /// 图片地址
    var picUrl = ""
    /// 国家类型  0: 中国， 1：外国
    var country = 0
    /// 外国国家名称或者中国省份名称
    var countryProvinceName = ""
    /// 城市id
    var cityId = 1
    /// 城市名称
    var cityName = ""
    /// 热门景点: 0：所有景点  1:普通景点  2: 热门景点
    var hotspot = 2
    /// 景区等级（0：所有级别 1: 1A级 2: 2A级 3: 3A级 4: 4A级 5: 5A级）
    var scenicLevel = 5
    /// 收藏数
    var collections = 0
    /// 本人是否收藏
    var hasCollected = true
    /// 已收听数
    var listeners = 0
    /// 讲解数目
    var storyNum = 0
    /// 0: 已上架 1：已下架
    var status = 0
    /// 听讲权限
    var listenPermission = 0
    ///
    var countryProvinceId = 1
    ///
    var createTime = ""
    ///
    var remarks = ""
    /// 更新时间
    var updateTime = ""
    
    required init?(map: ObjectMapper.Map) {
        
    }
    
    func mapping(map: ObjectMapper.Map) {
        
        brief <- map["brief"]
        cityId <- map["cityId"]
        cityName <- map["cityName"]
        collections <- map["collections"]
        country <- map["country"]
        countryProvinceId <- map["countryProvinceId"]
        countryProvinceName <- map["countryProvinceName"]
        createTime <- map["createTime"]
        englishBrief <- map["englishBrief"]
        englishName <- map["englishName"]
        hasCollected <- map["hasCollected"]
        hotspot <- map["hotspot"]
        id <- map["id"]
        listenPermission <- map["listenPermission"]
        listeners <- map["listeners"]
        name <- map["name"]
        picUrl <- map["picUrl"]
        remarks <- map["remarks"]
        scenicLevel <- map["scenicLevel"]
        status <- map["status"]
        storyNum <- map["storyNum"]
        updateTime <- map["updateTime"]
        
    }
    
    
}

